Einhugur macOS Bridge plugin.

NSWorkspace.ActivateFileViewerSelectingURLs Method

Activates the Finder, and opens one or more windows selecting the specified files.

shared ActivateFileViewerSelectingURLs(
   fileURLs() as EinhugurCoreBridge.NSURL)

Parameters

fileURLs()
The files to select and display in the Finder.

Remarks


var f as FolderItem = FolderItem.ShowOpenFileDialog("*.*")

if f <> nil then
    using EinhugurMacOSBridge
    using EinhugurCoreBridge
   
    NSWorkspace.ActivateFileViewerSelectingURLs(Array(NSURL.FromFolderItem(f)))
end if

See Also

NSWorkspace Class